import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

import store from './store';
Vue.prototype.$store = store

import MinRequest from './common/MinRequest.js';
Vue.use(MinRequest);

import minRequest from './api/api.js';

Vue.prototype.$novelUrl = 'http://api.zhuishushenqi.com'
Vue.prototype.$bus = new Vue()

//配置公共方法
import commonJS from './common/common.js'
Vue.prototype.$px2rpx = commonJS.px2rpx;
Vue.prototype.$formatWordcount = commonJS.formatWordcount;
Vue.prototype.$formatByte = commonJS.formatByte;
Vue.prototype.$formatTimestamp = commonJS.formatTimestamp;
Vue.prototype.$fileReader = commonJS.fileReader;
Vue.prototype.$fileWriter = commonJS.fileWriter;
Vue.prototype.$isJSONStr = commonJS.isJSONStr;
Vue.prototype.$throttling = commonJS.throttling;

App.mpType = 'app'

const app = new Vue({
	store,
	minRequest,
	...App
})
app.$mount()
